/*
 * This class is used to parsed data about variable and it will be stored in array list 
 * and mapped in the hash table. 
 */
package com.fipl.parse;

import java.util.ArrayList;
import java.util.HashMap;

public class ParserVariable {
	
	
	public HashMap<Integer, ArrayList<Double>> arraylistMap = new HashMap<Integer, ArrayList<Double>>();
	public ArrayList<String> iDArrayList = new ArrayList<String>();
	public ArrayList<String> fechaArrayList = new ArrayList<String>();
	public String equipoString;
	
	/**
	 * @return the equipoString
	 */
	public String getEquipoString() {
		return equipoString;
	}
	/**
	 * @param equipoString the equipoString to set
	 */
	public void setEquipoString(String equipoString) {
		this.equipoString = equipoString;
	}

	// store data of temperature 
	public ArrayList<Double> Temperature_1_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Temperature_2_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Temperature_3_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Temperature_4_ArrayList = new ArrayList<Double>();
	
	// store data of humidity 
	public ArrayList<Double> Humidity_1_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Humidity_2_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Humidity_3_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Humidity_4_ArrayList = new ArrayList<Double>();
	
	// store data of different voltage 
	public ArrayList<Double> Voltage_1A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_1B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_1C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_2A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_2B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_2C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_3A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_3B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_3C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_4A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_4B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_4C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_5A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_5B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_5C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_6A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_6B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_6C_ArrayList = new ArrayList<Double>(); 
	public ArrayList<Double> Voltage_7A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_7B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_7C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_8A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_8B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Voltage_8C_ArrayList = new ArrayList<Double>();
	
	
	// store data of ps temprature
	public ArrayList<Double> PSTemperature_1_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> PSTemperature_2_ArrayList = new ArrayList<Double>();
	
	// store data of different current 
	public ArrayList<Double> Current_1A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_1B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_1C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_2A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_2B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_2C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_3A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_3B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_3C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_4A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_4B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_4C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_5A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_5B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_5C_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_6A_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_6B_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Current_6C_ArrayList = new ArrayList<Double>();
	
	// store data of diesel
	public ArrayList<Double> Diesel_1_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> Diesel_2_ArrayList = new ArrayList<Double>();
	
	// store data of digital input 
	public ArrayList<Double> DigitalInput_1_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_2_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_3_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_4_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_5_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_6_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_7_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_8_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_9_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_10_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_11_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_12_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_13_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_14_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_15_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_16_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_17_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_18_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_19_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_20_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_21_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_22_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_23_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalInput_24_ArrayList = new ArrayList<Double>();	

	// store data of digital output 
	public ArrayList<Double> DigitalOutput_1_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_2_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_3_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_4_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_5_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_6_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_7_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_8_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_9_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_10_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_11_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_12_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_13_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_14_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_15_ArrayList = new ArrayList<Double>();
	public ArrayList<Double> DigitalOutput_16_ArrayList = new ArrayList<Double>();
	
	/*
	 * Store all the array list of variable in the below hash table.
	 */
	public void setMapping(){
		
		arraylistMap.put(0, Temperature_1_ArrayList);
		arraylistMap.put(1, Temperature_2_ArrayList);
		arraylistMap.put(2, Temperature_3_ArrayList);
		arraylistMap.put(3, Temperature_4_ArrayList);
		
		arraylistMap.put(4, Humidity_1_ArrayList);
		arraylistMap.put(5, Humidity_2_ArrayList);
		arraylistMap.put(6, Humidity_3_ArrayList);
		arraylistMap.put(7, Humidity_4_ArrayList);
		
		arraylistMap.put(8, PSTemperature_1_ArrayList);
		arraylistMap.put(9, PSTemperature_2_ArrayList);
		
		arraylistMap.put(10, Diesel_1_ArrayList);
		arraylistMap.put(11, Diesel_2_ArrayList);
		
		arraylistMap.put(12, Voltage_1A_ArrayList);
		arraylistMap.put(13, Voltage_1B_ArrayList);
		arraylistMap.put(14, Voltage_1C_ArrayList);
		
		arraylistMap.put(15, Voltage_2A_ArrayList);
		arraylistMap.put(16, Voltage_2B_ArrayList);
		arraylistMap.put(17, Voltage_2C_ArrayList);
		
		arraylistMap.put(18, Voltage_3A_ArrayList);
		arraylistMap.put(19, Voltage_3B_ArrayList);
		arraylistMap.put(20, Voltage_3C_ArrayList);
		
		arraylistMap.put(21, Voltage_4A_ArrayList);
		arraylistMap.put(22, Voltage_4B_ArrayList);
		arraylistMap.put(23, Voltage_4C_ArrayList);
		
		arraylistMap.put(24, Voltage_5A_ArrayList);
		arraylistMap.put(25, Voltage_5B_ArrayList);
		arraylistMap.put(26, Voltage_5C_ArrayList);
		
		arraylistMap.put(27, Voltage_6A_ArrayList);
		arraylistMap.put(28, Voltage_6B_ArrayList);
		arraylistMap.put(29, Voltage_6C_ArrayList);
		
		arraylistMap.put(30, Voltage_7A_ArrayList);
		arraylistMap.put(31, Voltage_7B_ArrayList);
		arraylistMap.put(32, Voltage_7C_ArrayList);
		
		arraylistMap.put(33, Voltage_8A_ArrayList);
		arraylistMap.put(34, Voltage_8B_ArrayList);
		arraylistMap.put(35, Voltage_8C_ArrayList);
		
		arraylistMap.put(36, Current_1A_ArrayList);
		arraylistMap.put(37, Current_1B_ArrayList);
		arraylistMap.put(38, Current_1C_ArrayList);
		
		arraylistMap.put(39, Current_2A_ArrayList);
		arraylistMap.put(40, Current_2B_ArrayList);
		arraylistMap.put(41, Current_2C_ArrayList);
		
		arraylistMap.put(42, Current_3A_ArrayList);
		arraylistMap.put(43, Current_3B_ArrayList);
		arraylistMap.put(44, Current_3C_ArrayList);
		
		arraylistMap.put(45, Current_4A_ArrayList);
		arraylistMap.put(46, Current_4B_ArrayList);
		arraylistMap.put(47, Current_4C_ArrayList);
		
		arraylistMap.put(48, Current_5A_ArrayList);
		arraylistMap.put(49, Current_5B_ArrayList);
		arraylistMap.put(50, Current_5C_ArrayList);
		
		arraylistMap.put(51, Current_6A_ArrayList);
		arraylistMap.put(52, Current_6B_ArrayList);
		arraylistMap.put(53, Current_6C_ArrayList);
		
		arraylistMap.put(54, DigitalInput_1_ArrayList);
		arraylistMap.put(55, DigitalInput_2_ArrayList);
		arraylistMap.put(56, DigitalInput_3_ArrayList);
		arraylistMap.put(57, DigitalInput_4_ArrayList);
		arraylistMap.put(58, DigitalInput_5_ArrayList);
		arraylistMap.put(59, DigitalInput_6_ArrayList);
		arraylistMap.put(60, DigitalInput_7_ArrayList);
		arraylistMap.put(61, DigitalInput_8_ArrayList);
		arraylistMap.put(62, DigitalInput_9_ArrayList);
		arraylistMap.put(63, DigitalInput_10_ArrayList);
		arraylistMap.put(64, DigitalInput_11_ArrayList);
		arraylistMap.put(65, DigitalInput_12_ArrayList);
		arraylistMap.put(66, DigitalInput_13_ArrayList);
		arraylistMap.put(67, DigitalInput_14_ArrayList);
		arraylistMap.put(68, DigitalInput_15_ArrayList);
		arraylistMap.put(69, DigitalInput_16_ArrayList);
		arraylistMap.put(70, DigitalInput_17_ArrayList);
		arraylistMap.put(71, DigitalInput_18_ArrayList);
		arraylistMap.put(72, DigitalInput_19_ArrayList);
		arraylistMap.put(73, DigitalInput_20_ArrayList);
		arraylistMap.put(74, DigitalInput_21_ArrayList);
		arraylistMap.put(75, DigitalInput_22_ArrayList);
		arraylistMap.put(76, DigitalInput_23_ArrayList);
		arraylistMap.put(77, DigitalInput_24_ArrayList);
		
		arraylistMap.put(78, DigitalOutput_1_ArrayList);
		arraylistMap.put(79, DigitalOutput_2_ArrayList);
		arraylistMap.put(80, DigitalOutput_3_ArrayList);
		arraylistMap.put(81, DigitalOutput_4_ArrayList);
		arraylistMap.put(82, DigitalOutput_5_ArrayList);
		arraylistMap.put(83, DigitalOutput_6_ArrayList);
		arraylistMap.put(84, DigitalOutput_7_ArrayList);
		arraylistMap.put(85, DigitalOutput_8_ArrayList);
		arraylistMap.put(86, DigitalOutput_9_ArrayList);
		arraylistMap.put(87, DigitalOutput_10_ArrayList);
		arraylistMap.put(88, DigitalOutput_11_ArrayList);
		arraylistMap.put(89, DigitalOutput_12_ArrayList);
		arraylistMap.put(90, DigitalOutput_13_ArrayList);
		arraylistMap.put(91, DigitalOutput_14_ArrayList);
		arraylistMap.put(92, DigitalOutput_15_ArrayList);
		arraylistMap.put(93, DigitalOutput_16_ArrayList);
			
	}
	
}
